FROM registry.cn-hangzhou.aliyuncs.com/sovell-io/jdk1.8:latest

# MAINTAINER后面是加创建人的信息
MAINTAINER    guantianyin@163.com
VOLUME /home/work/springDemo

#添加文件
ADD dbswitch-admin-1.6.16.jar /usr/local
RUN chmod u+x /usr/local/dbswitch-admin-1.6.16.jar

#开放端口
EXPOSE 8096

#启动时执行的命令
CMD ["/bin/bash"]

ENTRYPOINT ["java","-jar","/usr/local/dbswitch-admin-1.6.16.jar"]
